'use strict';

const {Controller} = require('egg');
const ResponseUtil = require('../utils/ResponseUtil');

class SysParamController extends Controller {

    async getSysParam() {
        let query = this.ctx.query;
        const resp = await this.ctx.service.sysparam.getSysParam(query);
        return this.ctx.body = ResponseUtil.success(resp);
    }

    async saveSysParam(){
        let body = this.ctx.request.body;
        const resp = await this.ctx.service.sysparam.saveSysParam(body);
        return this.ctx.body = ResponseUtil.success(resp);
    }



}

module.exports = SysParamController;
